#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import syscollegeinfo_blueprint
from api_1_0.sysCollegeinfoResource.sysCollegeinfoResource import SysCollegeinfoResource
from api_1_0.sysCollegeinfoResource.sysCollegeinfoOtherResource import SysCollegeinfoOtherResource

api = Api(syscollegeinfo_blueprint)

api.add_resource(SysCollegeinfoResource, '/sysCollegeinfo/<collegeID>', '/sysCollegeinfo', endpoint='SysCollegeinfo')


@syscollegeinfo_blueprint.route('/syscollegeinfo/update/<collegeID>', methods=['PUT'], endpoint='SysCollegeinfoUpdate')
def update(collegeID):
    return SysCollegeinfoOtherResource.sensitive_update(collegeID)
